package com.hd.entity.sqlexcel;
import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *  sql导出excel表查询字段表达式 实体类
 * @author <a href="mailto:hzhh123@sina.cn">hzhh123</a>
 * @date 2018-07-20 01:33
 *
 * @version 1.0
 *
 */
@Entity
@Table(name = "sql_excel_query_expression")
public class SqlExcelQueryExpression implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	* 外键
	*/
	@Column(name="f_id")
	private String fid;
	/**
	* id
	*/
	@Id
	@Column(name="id")
	private String id;
	/**
	* 顺序
	*/
	@Column(name="seq")
	private Integer seq;
	/**
	* 类型
	*/
	@Column(name="type")
	private String type;
	/**
	* 表达式
	*/
	@Column(name="expression")
	private String expression;
	/**
	* 名称
	*/
	@Column(name="name")
	private String name;
	/**
	 * 查询参数在第几个where后面
	 */
	@Column(name="pos")
	private Integer pos;
	/**
	 * 查询sql
	 */
	@Column(name="query_sql")
	private String querySql;
	@Column(name = "query_condition")
	private String queryCondition;
	/**
	 * 占位符
	 */
	private String placeholder;
	@Column(name="key_")
	private String key;
	@Column(name="query_sql_fid")
	private String querySqlFid;
	public String getFid() {
		return fid;
	}
	public void setFid(String fid) {
		this.fid = fid;
	}
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id=id;
	}
	public Integer getSeq(){
		return seq;
	}
	public void setSeq(Integer seq){
		this.seq=seq;
	}
	public String getType(){
		return type;
	}
	public void setType(String type){
		this.type=type;
	}
	public String getExpression(){
		return expression;
	}
	public void setExpression(String expression){
		this.expression=expression;
	}
	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name=name;
	}
	public Integer getPos() {
		return pos;
	}
	public void setPos(Integer pos) {
		this.pos = pos;
	}
	public String getQuerySql() {
		return querySql;
	}
	public void setQuerySql(String querySql) {
		this.querySql = querySql;
	}
	public String getPlaceholder() {
		return placeholder;
	}
	public void setPlaceholder(String placeholder) {
		this.placeholder = placeholder;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getQuerySqlFid() {
		return querySqlFid;
	}
	public void setQuerySqlFid(String querySqlFid) {
		this.querySqlFid = querySqlFid;
	}

	public String getQueryCondition() {
		return queryCondition;
	}

	public void setQueryCondition(String queryCondition) {
		this.queryCondition = queryCondition;
	}
}
